package bishizhuanyong.美团;

import java.util.Scanner;

public class meituan {

    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        //num of city
        int n = s.nextInt();
        //days
        int m = s.nextInt();
        //orginal pos
        int k = s.nextInt();
        //pos
        int[] poses=new int[m];
        //profit_dont change pos
        int[] profitdg=new int[m];
        //
        int[] profitg=new int[m];
        for (int i=0;i<m;i++)
            poses[i]=s.nextInt();
        for (int i=0;i<m;i++)
            profitdg[i]=s.nextInt();
        for (int i=0;i<m;i++)
            profitg[i]=s.nextInt();
        process(poses,profitdg,profitg,k,0,0);
        System.out.println(maxProfit);
    }

    public static int maxProfit=Integer.MIN_VALUE;
    public static void process(int[] poses,int[] dg,int[] g,int curpos,int curday,int sum){
        if (curday==poses.length) {
            maxProfit = Math.max(maxProfit, sum);
            return;
        }
        //do the job
        int task_pos=poses[curday];
        if (task_pos==curpos){
            process(poses,dg,g,curpos,curday+1,sum+dg[curday]);
        }else
            process(poses,dg,g,task_pos,curday+1,sum+g[curday]);
        //dont do the job
        process(poses,dg,g,curpos,curday+1,sum);
    }
}


/*Scanner s=new Scanner(System.in);
        int count = s.nextInt();
        int[] num=new int[count];
        for (int i=0;i<count;i++){
            num[i]=s.nextInt();
        }
        int[] ints = Arrays.copyOf(num, num.length);
        Arrays.sort(num);
        int orginal=-1;
        for (int i=0;i<num.length;i++){
            if (num[i]!=i){
                orginal=i;
                break;
            }
        }
        if (orginal==-1)
            orginal=num.length;
       for (int i=0;i<ints.length;i++){
           if (ints[i]<orginal)
               System.out.print(ints[i]+" ");
           else
               System.out.print(orginal+" ");
       }*/
/*
Scanner s=new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();
        int gap=b+2-a;
        int res=a+gap;
        if (res>=11)
            System.out.println(gap);
        else
            System.out.println(gap+11-res);
 */
